package com.kotasoft.iip.model.insurance;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@SuppressWarnings("serial")
public class MathProvision implements Serializable {

	private BaseAsset asset;
	private BigDecimal units;
	private Date valueDate;

	private AssetPrice price;
	private BigDecimal value;

	public BaseAsset getAsset() {
		return asset;
	}

	public void setAsset(BaseAsset asset) {
		this.asset = asset;
	}

	public BigDecimal getUnits() {
		return units;
	}

	public void setUnits(BigDecimal units) {
		this.units = units;
	}

	public Date getValueDate() {
		return valueDate;
	}

	public void setValueDate(Date valueDate) {
		this.valueDate = valueDate;
	}

	public AssetPrice getPrice() {
		return price;
	}

	public void setPrice(AssetPrice price) {
		this.price = price;
	}

	public BigDecimal getValue() {
		return value;
	}

	public void setValue(BigDecimal value) {
		this.value = value;
	}

	public boolean isValued() {
		return value != null;
	}
}
